﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SayisalAnaliz.WPF
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void lblSaidAydogan_MouseEnter(object sender, MouseEventArgs e)
        {
            lblSaidAydogan.Content = "http://www.saidaydogan.com";
        }

        private void lblSaidAydogan_MouseLeave(object sender, MouseEventArgs e)
        {
            lblSaidAydogan.Content = "S. Said AYDOĞAN";
        }

        private void lblSaidAydogan_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.saidaydogan.com");
        }

        private void btnGrfkYntemi_Click(object sender, RoutedEventArgs e)
        {           
            GrafikYontemPencere pencere = new GrafikYontemPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnBsection_Click(object sender, RoutedEventArgs e)
        {
            BiSectionPencere pencere = new BiSectionPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnRegulaFalse_Click(object sender, RoutedEventArgs e)
        {
            RegulaFalsePencere pencere = new RegulaFalsePencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnNRaphson_Click(object sender, RoutedEventArgs e)
        {
            NewtonRaphsonPencere pencere = new NewtonRaphsonPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnInvers_Click(object sender, RoutedEventArgs e)
        {
            MatrisInversPencere pencere = new MatrisInversPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnTrapez_Click(object sender, RoutedEventArgs e)
        {
            TrapezPencere pencere = new TrapezPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnSimpson_Click(object sender, RoutedEventArgs e)
        {
            SimpsonPencere pencere = new SimpsonPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnNumeric_Click(object sender, RoutedEventArgs e)
        {
            TurevPencere pencere = new TurevPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }

        private void btnGauss_Click(object sender, RoutedEventArgs e)
        {
            GaussPencere pencere = new GaussPencere();
            this.Hide();
            pencere.ShowDialog();
            this.Show();
        }    
            
    }
}
